package com.hae.shop.micoshopportalweb.controller.member.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 页面注册请求实体类
 */
@Data
public class RegisterReqVo {

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号不能为空！")
    @NotNull(message = "手机号不能为null！")
    @Size(min = 11, max = 11, message = "手机长度11位！")
//    @Pattern(regexp = "^((13[0-9])|(14[5,7,9])|(15([0-3]|[5-9]))|(166)|(17[0,1,3,5,6,7,8])|(18[0-9])|(19[8|9]))\\\\d{8}$", message = "手机号码不合法！")
    @ApiModelProperty(value = "手机号码")
    private String mobile;

    /**
     * 密码
     */
    @NotNull(message = "密码不能为null！")
    @NotBlank(message = "密码不能为空！")
    @ApiModelProperty(value = "密码")
    private String password;


    /**
     * 图片验证码
     */
    @NotNull(message = "验证码不能为null！")
    @NotBlank(message = "验证码不能为空！")
    private String graphicCode;

    /**
     * 微信验证码
     */
    @NotNull(message = "验证码不能为null！")
    @NotBlank(message = "验证码不能为空！")
    private String registCode;
}
